import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/components/Layout.vue'
import Dashboard from '@/views/Dashboard.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '',
        name: 'Dashboard',
        component: Dashboard
      },
      {
        path: '/factory',
        name: 'Factory',
        component: () => import('@/views/Factory.vue')
      },
       {
        path: '/3d_generate',
        name: '3DModelGeneration',
        component: () => import('@/views/ThreeDGenerate.vue')
      },
      {
        path: '/pose-detection',
        name: 'PoseDetection',
        component: () => import('@/views/PoseDetection.vue')
      },
      {
        path: '/fire-detection',
        name: 'FireDetection',
        component: () => import('@/views/FireDetection.vue')
      },
      {
        path: '/fire-realtime-detection',
        name: 'FireRealtimeDetection',
        component: () => import('@/views/FireRealtimeDetection.vue')
      },
      {
        path: '/qa',
        name: 'IntelligentQA',
        component: () => import('@/views/IntelligentQA.vue')
      },
      {
        path: '/quality',
        name: 'QualityQA',
        component: () => import('@/views/IntelligentQA.vue')
      },
      {
        path: '/baosteel',
        name: 'BaosteelProject',
        component: () => import('@/views/BaosteelProject.vue')
      },
      {
        path: '/platform-architecture',
        name: 'PlatformArchitecture',
        component: () => import('@/views/PlatformArchitecture.vue')
      },
      // 新增：赛力斯知识图谱路由
      {
        path: '/sailisi',
        name: 'SailisiKnowledgeGraph',
        component: () => import('@/views/SailisiKnowledgeGraph.vue')
      },
      // 新增：知识库路由
      {
        path: '/knowledge-base',
        name: 'KnowledgeBase',
        component: () => import('@/views/KnowledgeBase.vue')
      },
      // 新增：图数据库管理路由
      {
        path: '/graph-management',
        name: 'GraphManagement',
        component: () => import('@/views/GraphManagement.vue')
      },
      // 新增：模型库路由
      {
        path: '/model-library',
        name: 'ModelLibrary',
        component: () => import('@/views/ModelLibrary.vue')
      },
      // 新增：数据湖路由
      {
        path: '/data-lake',
        name: 'DataLake',
        component: () => import('@/views/DataLake.vue')
      },
      // 新增：源数据路由
      {
        path: '/source-data',
        name: 'SourceData',
        component: () => import('@/views/SourceData.vue')
      },
      // 新增：传祺项目路由
      {
        path: '/gac',
        name: 'GacProject',
        component: () => import('@/views/GacProject.vue')
      },
      // 新增：智慧城市路由
      {
        path: '/smart-city',
        name: 'SmartCity',
        component: () => import('@/views/SmartCity.vue')
      },
      // 新增：CSV数据测试路由
      {
        path: '/test-csv-data',
        name: 'TestCsvData',
        component: () => import('@/views/TestCsvData.vue')
      },
      // 新增：吉利汽车路由
      {
        path: '/geely',
        name: 'GeelyProject',
        component: () => import('@/views/GeelyProject.vue')
      },
      // 新增：智慧港口路由
      {
        path: '/smart-port',
        name: 'SmartPort',
        component: () => import('@/views/SmartPort.vue')
      },
      // 新增：社会民生路由
      {
        path: '/social-livelihood',
        name: 'SocialLivelihood',
        component: () => import('@/views/SocialLivelihood.vue')
      },
      // 新增：智慧校园路由
      {
        path: '/smart-campus',
        name: 'SmartCampus',
        component: () => import('@/views/SmartCampus.vue')
      },
      // 新增：CSV处理结果路由
      {
        path: '/csv-processing-result',
        name: 'CsvProcessingResult',
        component: () => import('@/views/CsvProcessingResult.vue')
      },
      // 新增：D3图谱测试路由
      {
        path: '/test-d3-graph',
        name: 'TestD3Graph',
        component: () => import('@/views/TestD3Graph.vue')
      },
      // 新增：CSV图谱分析路由
      {
        path: '/csv-graph',
        name: 'CsvGraphView',
        component: () => import('@/views/CsvGraphView.vue')
      },
      // 新增：三维重建路由
      {
        path: '/3d-reconstruction',
        name: 'ThreeDReconstruction',
        component: () => import('@/views/ThreeDReconstruction.vue')
      },
      // 新增：研究院知识图谱路由
      {
        path: '/research-institute-kg',
        name: 'ResearchInstituteKnowledgeGraph',
        component: () => import('@/views/ResearchInstituteKnowledgeGraph.vue')
      },
      // 新增：港口模型测试路由
      {
        path: '/port-model-test',
        name: 'PortModelTest',
        component: () => import('@/views/PortModelTest.vue')
      },
      // 新增：家居模型测试路由
      {
        path: '/home-model-test',
        name: 'HomeModelTest',
        component: () => import('@/views/HomeModelTest.vue')
      },
      // 新增：知识图谱测试路由
      {
        path: '/knowledge-graph-test',
        name: 'KnowledgeGraphTest',
        component: () => import('@/views/KnowledgeGraphTest.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
